package com.ruoyi.pay.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 订单对象 tb_order
 * 
 * @author ruoyi
 * @date 2023-02-07
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderNum;

    /** 优惠卷id */
    @Excel(name = "优惠卷id")
    private Long couponId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String cuserName;

    /** 用户id */
    @Excel(name = "用户id")
    private Long cuserId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private String totalAmount;

    /** 订单应付金额 */
    @Excel(name = "订单应付金额")
    private String totalPayamount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payType;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderType;

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    /** 桌号 */
    private  String tableId;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderCreatorTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setCuserName(String cuserName) 
    {
        this.cuserName = cuserName;
    }

    public String getCuserName() 
    {
        return cuserName;
    }
    public void setCuserId(Long cuserId) 
    {
        this.cuserId = cuserId;
    }

    public Long getCuserId() 
    {
        return cuserId;
    }
    public void setTotalAmount(String totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public String getTotalAmount() 
    {
        return totalAmount;
    }
    public void setTotalPayamount(String totalPayamount) 
    {
        this.totalPayamount = totalPayamount;
    }

    public String getTotalPayamount() 
    {
        return totalPayamount;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setOrderCreatorTime(Date orderCreatorTime) 
    {
        this.orderCreatorTime = orderCreatorTime;
    }

    public Date getOrderCreatorTime() 
    {
        return orderCreatorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("couponId", getCouponId())
            .append("cuserName", getCuserName())
            .append("cuserId", getCuserId())
            .append("totalAmount", getTotalAmount())
            .append("totalPayamount", getTotalPayamount())
            .append("payType", getPayType())
            .append("orderType", getOrderType())
            .append("orderCreatorTime", getOrderCreatorTime())
            .toString();
    }
}
